package com.ttbj.product.bean.dto;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

@JsonInclude(Include.NON_NULL)
public class WaybillDto implements Serializable {

	private static final long serialVersionUID = -8662046052023064675L;

	private Long waybillId;

	private Long waybillOrder;

	private Long waybillDriver;

	private String waybillInsTime;

	private String waybillUpdateTime;

	private Integer waybillState;

	private String waybillTruck;

	public WaybillDto(Long driverId, Long orderId) {
		this.waybillDriver = driverId;
		this.waybillOrder = orderId;
	}

	public WaybillDto() {
	}

	public WaybillDto(Long waybillId, Integer waybillSate) {
		this.waybillId = waybillId;
		this.waybillState = waybillSate;
	}

	public WaybillDto(Long waybillId) {
		this.waybillId = waybillId;
	}

	public String getWaybillTruck() {
		return waybillTruck;
	}

	public void setWaybillTruck(String waybillTruck) {
		this.waybillTruck = waybillTruck;
	}

	public Long getWaybillId() {
		return waybillId;
	}

	public void setWaybillId(Long waybillId) {
		this.waybillId = waybillId;
	}

	public Long getWaybillOrder() {
		return waybillOrder;
	}

	public void setWaybillOrder(Long waybillOrder) {
		this.waybillOrder = waybillOrder;
	}

	public Long getWaybillDriver() {
		return waybillDriver;
	}

	public void setWaybillDriver(Long waybillDriver) {
		this.waybillDriver = waybillDriver;
	}

	public String getWaybillInsTime() {
		return waybillInsTime;
	}

	public void setWaybillInsTime(String waybillInsTime) {
		this.waybillInsTime = waybillInsTime;
	}

	public String getWaybillUpdateTime() {
		return waybillUpdateTime;
	}

	public void setWaybillUpdateTime(String waybillUpdateTime) {
		this.waybillUpdateTime = waybillUpdateTime;
	}

	public Integer getWaybillState() {
		return waybillState;
	}

	public void setWaybillState(Integer waybillState) {
		this.waybillState = waybillState;
	}

	@Override
	public String toString() {
		return "WayBillDto [waybillId=" + waybillId + ", waybillOrder=" + waybillOrder + ", waybillDriver=" + waybillDriver + ", waybillInsTime=" + waybillInsTime + ", waybillUpdateTime=" + waybillUpdateTime + ", waybillState=" + waybillState + "]";
	}

	public WaybillDto state(Integer stateFlag) {
		this.waybillState = stateFlag;
		return this;
	}
}
